(function() {
	// 현재 directory depth 구하기
	var cPath = location.href, path = cPath.substring(cPath.lastIndexOf("www") + 4, cPath.length), depth = path.split("/").length - 1, dir_prefix = "", ii = 0;

	for (; ii < depth; ii++)
		dir_prefix += "../";
	
	document.write('<link rel="stylesheet" href="' + dir_prefix + 'lib/css/jquery.mobile-1.2.0.css" />');
	document.write('<link rel="stylesheet" href="' + dir_prefix + 'lib/css/diet_theme.css" />');
	document.write('<link rel="stylesheet" href="' + dir_prefix + 'css/custom.css" />');
	document.write('<script src="' + dir_prefix + 'lib/js/jquery-1.8.2.min.js"></script>');
	document.write('<script src="' + dir_prefix + 'lib/js/init_script.js"></script>');
	document.write('<script src="' + dir_prefix + 'lib/js/jquery.mobile-1.2.0.min.js"></script>');
	document.write('<script src="' + dir_prefix + 'js/json2.js"></script>');
	document.write('<script src="' + dir_prefix + 'js/FunctionSet.js"></script>');
	document.write('<script src="' + dir_prefix + 'js/jQueryMobileHelper.js"></script>');
	document.write('<script src="' + dir_prefix + 'js/common.js"></script>');
	document.write('<script src="' + dir_prefix + 'js/flotr2.js"></script>');
}());